package com.dong.config;

import com.dong.bean.Person;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.ComponentScans;
import org.springframework.context.annotation.Configuration;

/**
 * 第一个配置
 */
@Configuration
@ComponentScans(value = {@ComponentScan("com.dong.dao"),@ComponentScan("com.dong.service")})
public class T011MainConfig {
    @Bean("perosn01")
    Person person() {
        return new Person("zhangsan",18);
    }
}
